$(function () {
    let $login=$("#login");
    $login.on('click',function () {

        let userName=$("#userName").val();
        let passWord=$("#passWord").val();
        $.ajax({
            type: 'post',
            url: '/login',
            data: {userName:userName,passWord:md5(passWord)},

            success: function (result) {
                if (result.code === 200) {
                    window.location.href = '/index';
                }else {
                }
            },
            error: function (result) {
            }
        });
    });
});